const rootContainer = (argv: any) => {
    let rootDom = document.getElementById('root')
    if (!rootDom) {
        rootDom = document.createElement('div')
        rootDom.setAttribute('id', 'root')
        document.body.appendChild(rootDom)
    }
    let nDom = rootDom.querySelector('.ant-notification')
    if (nDom) {
        return nDom.parentElement
    } else {
        let childDom = document.createElement('div')
        rootDom.appendChild(childDom)
        return childDom
    }
}

export default rootContainer
